package com.swf.seed.txt.file;

import java.io.IOException;

import com.swf.common.utils.FwsFileUtils;
import com.swf.common.utils.FwsIOUtils;

public class FileMerge {
	public static void main(String[] args) throws IOException {
		FwsIOUtils io = FwsIOUtils.getInstance().setAppend(true).setCharst("GBK").setOutPath("d:/a/merge.txt");
		StringBuffer sb = new StringBuffer();
		String content;
		for (int i=0;i<10000;i++){
			 content = FwsFileUtils.loadFile("d:/a/c/"+i+".txt", "GBK");
			 io.setContent(content);
			 io.writeByline();
		}
	}
}
